package cn.itrip.biz.service.impl;

import cn.itrip.beans.dto.Dto;
import cn.itrip.beans.vo.ItripAreaDicVo;
import cn.itrip.biz.service.QueryMethodService;
import cn.itrip.common.DtoUtils;
import cn.itrip.dao.mapper.ItripAreaDicMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class QueryMethodServiceImpl implements QueryMethodService {

    @Resource
    private ItripAreaDicMapper itripAreaDicMapper;
    @Override
    public Dto queryListTradearea(String parent) throws Exception {
        List<ItripAreaDicVo> itripAreaDics = itripAreaDicMapper.selectTradearea(Long.parseLong(parent));
        return DtoUtils.getSuccesDto(itripAreaDics);
    }
}
